/*
 * Copyright (c) 2006-2020, RT-Thread Development Team
 *
 * SPDX-License-Identifier: MIT
 *
 * Change Logs:
 * Date           Author       Notes
 * 2020-11-24     XiaoYi       the first version
 */

#ifndef __MID_CO2_H__
#define __MID_CO2_H__

#include <rtthread.h>
#include "main.h"
#include "mid_cat1.h"

#define DATA_FRAME_START 0x16

extern data_frame_t mid_co2_data;

void mid_co2_init(void);

int mid_co2_cmd ( uint8_t * cmd, uint8_t cmd_len, uint8_t * data_out, uint32_t waittime );

uint16_t mid_co2_get(void);

#endif

